package com.codejam2012.round1b;

import java.io.File;
import java.io.PrintStream;
import java.util.Scanner;

public class A {

	static int nTest, N, X;
	static int[] s;
	static double[] y;
	
	
	public static void main(String[] args) throws Exception {
		Scanner scanner = new Scanner(new File("A-in.txt"));
		PrintStream ps = new PrintStream(new File("A-out.txt"));
		System.setOut(ps);
		
		nTest = scanner.nextInt();
		for (int test=1;test<=nTest;++test) {
			N = scanner.nextInt();
			s = new int[N];
			y = new double[N];
			X = 0;
			for (int i=0;i<N;++i) {
				s[i] = scanner.nextInt();
				X += s[i];
			}
			int count = 0;
			double surplus = 0;
			System.out.print("Case #" + test + ":");
			for (int i=0;i<N;++i) {
				y[i] = 100 * (double)(2*X - N*s[i]) / (double)(X*N);
				if (2*X <= N*s[i]) {
					surplus += y[i];
					y[i] = 0;
					count++;
				}
				
			}
			surplus /= (N-count);
			for (int i=0;i<N;++i) {
				if (2*X > N*s[i]) {
					y[i] += surplus;
				}
				System.out.print(String.format(" %.6f", y[i]));
			}
			
			System.out.println();
		}
	}
}
